package com.zy.couponapp.service.schedule;

import com.zy.couponapp.service.CouponService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

/**
 * @author MissZhou
 */
@Service
public class UpdateCouponJob {

    private static final Logger logger =  LoggerFactory.getLogger(UpdateCouponJob.class);

    @Autowired
    private CouponService couponService;

//    @Scheduled(cron = "* 0/5 * * * ?")
//    public void updateCoupon(){
//        logger.info("enter update coupon job");
//        couponService.updateCouponMap();
//    }

}
